package cn.interestingshop.service.user;

import cn.interestingshop.entity.User;

import java.util.List;

/**
 * @InterfaceName : UserService
 * @Description :
 * @Author : Lzz
 * @Date: 2023/2/20 14:51:25
 */
public interface UserService {

    /**
     * 查询用户列表
     * @param currentPageNo
     * @param pageSize
     * @return
     */
    List<User> findAllUserList(Integer currentPageNo, Integer pageSize);

    /**
     * 获取用户总记录条数
     * @return
     */
    int findUserCount();

    /**
     *
     * @param userId
     * @param loginName
     * @return
     */
    User getById(Integer userId,String loginName);

    /**
     *
     * @param user
     * @return
     */
    boolean save(User user);
}
